package common.util;

/**
 * @Author wangyue
 * @Version 3.0
 * @Date 2024-08-04
 */
public class NumberUtils {

    public static int clamp(int value, int minValue, int maxValue) {
        if(value < minValue) return minValue;
        if(value > maxValue) return maxValue;
        return value;
    }

}
